<script>
	import setting from './setting.js'
	export default {
		globalData: {
			baseUrl:setting.baseUrl,
			userId: false,
			userInfo: {}
		},
		onLaunch: function() {
			console.log('App Launch')
			uni.getStorage({
				key: 'userId',
				success: (res) => {
					getApp().globalData.userId = res.data;
				}
			});
			uni.getStorage({
				key: 'userInfo',
				success: (res) => {
					getApp().globalData.userInfo = res.data;
				}
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	.timu__page{
		min-height: 100vh;
		position: relative;
	}
</style>
